//
//  BLSubsribeTableViewCell.m
//  百思不得姐
//
//  Created by hbl on 16/3/19.
//  Copyright © 2016年 hbl. All rights reserved.
//

#import "BLSubsribeTableViewCell.h"
#import "BLSubsribe.h"
#import "UIImageView+WebCache.h"

@interface BLSubsribeTableViewCell()
@property (weak, nonatomic) IBOutlet UIImageView *headImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *followNumberLabel;
@property (weak, nonatomic) IBOutlet UIButton *followButton;

@end

@implementation BLSubsribeTableViewCell

- (void)awakeFromNib {
    // Initialization code
    self.headImageView.layer.cornerRadius = 8;
    self.headImageView.clipsToBounds = YES;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setFrame:(CGRect)frame
{
    frame = CGRectMake(2.5, frame.origin.y - 1, frame.size.width - 5, frame.size.height - 1);
    [super setFrame:frame];
}

- (void)setSubscribe:(BLSubsribe *)subscribe
{
    _subscribe = subscribe;
    [self.headImageView sd_setImageWithURL:[NSURL URLWithString:subscribe.image_list]];
    self.nameLabel.text = subscribe.theme_name;
    self.followNumberLabel.text = subscribe.sub_number;
}
@end
